﻿using SharpML.Api.Extensions;
using SharpML.Api.Implementation;
using SharpML.Api.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpML.Gui.Data
{
    [Serializable]
    public class Configuration
    {
        public string Name { get; set; }

        public XmlSerializableDictionary<string, object> ApplicationData
        {
            get { return Properties.Settings.Default.Serialize(); }
            set { Properties.Settings.Default.Deserialize( value ); }
        }

        public List<PluginConfiguration> PluginData
        {
            get { return PluginHost.PluginConfiguration; }
            set { PluginHost.PluginConfiguration = value; }
        }
    }
}
